﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="XhtmlEditor.ascx.cs" Inherits="LCA.Admin.FormControls.XhtmlEditor" %>

<asp:Panel ID="pnlContainer" style="border:solid silver 1px" runat="server">
    <ui:visualeditor 
	    formattingconfiguration="common"
	    elementclassconfiguration="common" 
        embedablefieldstypenames=""
	    configurationstylesheet="<%= Composite.Core.WebClient.UrlUtils.ResolvePublicUrl( "Frontend/Styles/VisualEditor/VisualEditor.Config.css" ) %>"  
	    presentationstylesheet="<%= Composite.Core.WebClient.UrlUtils.ResolvePublicUrl( "Frontend/Styles/VisualEditor/VisualEditor.Default.css" ) %>"
	    value="<%= HttpContext.Current.Server.UrlEncode(_currentStringValue).Replace("+", "%20") %>"
	    id="<%= this.ClientID %>"
	    name="<%= this.ClientID %>"
	    callbackid="<%= this.ClientID %>"/>
</asp:Panel>

<script type="text/javascript">
//<![CDATA[
    $("#<%=Page.Form.ClientID%>").bind("submit", function () {
        $("input#<%= this.ClientID %>").val(bindingMap.<%= this.ClientID %>.getValue());
    });
//]]>
</script>
